package com.xm2.demo.login.user.dao;

import com.xm2.demo.model.Position;
import com.xm2.demo.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

/**
 * @Create
 * @create 2018-12-20 15:47
 * @Description：
 */
@Repository
public interface UserRepository extends JpaRepository<User, Integer> {

    User findUserByUsername(@Param("username") String username);

    User findUserByName(@Param("name") String name);

}
